package models;

import java.util.ArrayList;

import javax.persistence.Id;

import com.googlecode.objectify.annotation.Cached;
import com.googlecode.objectify.annotation.Unindexed;
@Cached
public class Keyword {
	@Id private String keyword = "";
	@Unindexed private ArrayList<String> domain = new ArrayList<String>();
	public String getKeyword() {
		return keyword;
	}
	public void setKeyword(String keyword) {
		this.keyword = keyword;
	}
	public ArrayList<String> getDomain() {
		return domain;
	}
	public void setDomain(ArrayList<String> domain) {
		this.domain = domain;
	}
	public void addDomain(String link)
	{
		if(!this.domain.contains(link))
			this.domain.add(link);
	}
}
